package cn.iot.sys.service.impl;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.dao.SysLeaveTypeDao;
import cn.iot.sys.entity.SysLeaveType;
import cn.iot.sys.service.SysLeaveTypeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysLeaveTypeServiceImpl implements SysLeaveTypeService {
    @Resource
    private SysLeaveTypeDao sysLeaveTypeDao;
    private Logger logger = LoggerFactory.getLogger(getClass());
    @Override
    public ResultMsg getSysLeaveTypeAll() {
        logger.info("SysLeaveTypeServiceImpl getSysLeaveTypeAll start...");
        List<SysLeaveType> sysLeaveTypeAll = sysLeaveTypeDao.getSysLeaveTypeAll();
        ResultMsg msg = new ResultMsg(200,"成功",sysLeaveTypeAll);
        return msg;
    }
}
